package network.packets;

import java.io.Serializable;

public abstract class PacketAbstract implements Serializable
{
   private static final long serialVersionUID = -1806957314515205721L;
   
   private final int opcode;
   
   public PacketAbstract(int opcode)
   {
      this.opcode = opcode;
      System.out.println(" >>> " + this);
   }

   public int getOpcode()
   {
      return opcode;
   }
   
   @Override
   public String toString()
   {
      return "[" + getClass().getSimpleName() + "] opcode:" + opcode;
   }
}
